﻿const sum = (a,b) => {
    if(a && b){
        return a + b;
    }
    throw new Error('Invalid arguments');
}

try{
    console.log(1,2);
}catch(error){
    console.log('Error occurred');
    //console.log(error);
}
